﻿@using System.Linq
@using System.Xml.Linq
@using ShopShop.Models
@{
    AppClient db = new AppClient(Manufacturor.BANGIAY);
    IBanGiayRepository iBanGiayFactory = db.factory.CreateProduct();
    var Cat = iBanGiayFactory.getCategory();
    
}
<div id="cate-menu" class="DefaultModule">
    <div class="DefaultContainer cate-menu-title">
        <span>Catagory list</span>
    </div>
    <div class="defaultContent cate-menu-content">
        <ul>
            @foreach (var item in Cat)
            {            
                <li class="level0 "><a href="/Category/Details/@item.CategoryId"><span>
                    @item.Description</span></a>
                    <ul style="display: block;">
                        @foreach (var s in item.SubCategories)
                        {
                            <li class="level1 "><a href="/SubCategory/Details/@s.SubCatId"><span>
                                @s.Description</span></a>
                                <ul style="display: block;">
                                </ul>
                            </li>
                        }
                    </ul>
                </li>
            }
        </ul>
    </div>
    <div class="defaultFooter cate-menu-footer">
        <div>
        </div>
    </div>
</div>
